import { createStore } from "vuex";
import createPersistedstate from "vuex-persistedstate";
import user from "@/store/user";
import cart from "@/store/cart";
import category from "@/store/category";
const store = createStore({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    cart,
    category,
    user,
  },
  plugins: [
    createPersistedstate({
      key: "rabbit-client-pc",
      paths: ["user", "cart"],
    }),
  ],
});
export default store;
